package com.xw.comm.core;

import com.xw.comm.entity.IdentifyObject;
import com.xw.comm.entity.run.BaseLocationEnum;
import com.xw.comm.entity.run.BaseStateEnum;
import com.xw.comm.entity.run.MainObject;
import com.xw.comm.entity.run.ViceObject;
import lombok.Data;

/**
 * 分析对象结果
 *
 * @author xiongwei_vendor
 * @date 2021/9/29 16:49
 */
@Data
public class AnalysisObjectResult {

    /**
     * 主要对象
     */
    private MainObject mainObject;

    /**
     * 副对象
     */
    private ViceObject viceObject;

    /**
     * 基本状态
     */
    private BaseStateEnum baseStateEnum = BaseStateEnum.NON_COMBAT;

    /**
     * 数据分配
     *
     * @param identifyObject 对象
     */
    public void dataDistribution(IdentifyObject identifyObject) {
        if (identifyObject == null) {
            return;
        }
        if (identifyObject.getIdentifyObject() == 0) {

        } else {

        }
    }

    /**
     * 开始计算
     */
    public void calculation() {
        if (baseStateEnum == BaseStateEnum.NON_COMBAT) {
            BaseLocationEnum baseLocation = mainObject.getBaseLocation();

        } else if (baseStateEnum == BaseStateEnum.FIGHT) {

        }
    }


}
